package com.member.provider.service.impl;

import com.member.dto.Contracted;
import com.member.provider.mapper.ContractedMapper;
import com.member.provider.service.ContractedService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
@Service
public class ContractedServiceImpl implements ContractedService{

    @Resource
    private ContractedMapper contractedMapper;

    @Override
    public int deleteByPrimaryKey(String channelId) {
        return contractedMapper.deleteByPrimaryKey(channelId);
    }

    @Override
    public int insert(Contracted record) {
        return contractedMapper.insert(record);
    }

    @Override
    public int insertSelective(Contracted record) {
        return contractedMapper.insertSelective(record);
    }

    @Override
    public Contracted selectByPrimaryKey(String channelId) {
        return contractedMapper.selectByPrimaryKey(channelId);
    }

    @Override
    public int updateByPrimaryKeySelective(Contracted record) {
        return contractedMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Contracted record) {
        return contractedMapper.updateByPrimaryKey(record);
    }

    @Override
    public Integer selectMemberByContracted(Contracted contracted) {
        Integer integer = contractedMapper.selectMemberByContracted(contracted);

        return integer;

    }

}
